package cc.ucanuup.service.base.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cc.ucanuup.service.base.dao.RelationUserRoleJPA;
import cc.ucanuup.service.base.entity.RelationUserRole;
import cc.ucanuup.service.base.inter.UserRoleService;


/**
 * Description: TODO[描述该类概要功能介绍]
 *
 * @author guwenbin
 * @date 2018年2月7日
 * @version 1.0
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

	@Autowired
	private RelationUserRoleJPA relationUserRoleJPA;

	@Override
	public RelationUserRole findOneByRoleIdAndUserId(String roleId, String userId) {

		return relationUserRoleJPA.findOneByRoleIdAndUserId(roleId, userId);
	}

	@Override
	public RelationUserRole save(RelationUserRole entity) {

		return relationUserRoleJPA.save(entity);
	}

}
